package com.nhjf.model.jobDetails;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.postJob.PostJob;
import com.nhjf.model.student.Student;
import com.nhjf.model.teachers.CoursesType;
@SuppressWarnings("serial")
@Entity
@Table(name = "jobDetails")
public class JobDetails extends BaseModel{
	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;

	/**
	 *学生
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "studentId")
	private Student student;
	/**
	 *提交作业
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "postJobId")
	private PostJob postJob;
	/**
	 * 老师未批改作业路径
	 */
	@Column(name = "notchangedURL")
	private String notchangedURL;
	/**
	 * 老师已批改作业路径
	 */
	@Column(name = "changepaintingURL")
	private String changepaintingURL;
	/**
	 * 发布时间
	 */
	@Column(name = "releasetime")
	private Date releasetime;
	/**
	 * 批改时间
	 */
	@Column(name = "reviewtime")
	private Date reviewtime;
	/**
	 * 创建时间
	 */
	@Column(name = "creaTime")
	private Date creaTime;
	/**
	 * 状态：1已交、2未交、3以批改
	 */
	@Column(name = "status")
	private Integer status;
	/**
	 * 未交作业原因：1旷课、2请假、3已补交 4已过期
	 */
	@Column(name = "unpaidReason")
	private Integer unpaidReason;
	/**
	 * 分数
	 */
	@Column(name = "sccore")
	private Integer sccore;
	/**
	 * 宽
	 */
	@Column(name = "width")
	private Integer width;
	/**
	 * 高
	 */
	@Column(name = "height")
	private Integer height;
	/**
	 * 评语
	 */
	@Column(name = "comment")
	private String comment;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public PostJob getPostJob() {
		return postJob;
	}
	public void setPostJob(PostJob postJob) {
		this.postJob = postJob;
	}
	public String getNotchangedURL() {
		return notchangedURL;
	}
	public void setNotchangedURL(String notchangedURL) {
		this.notchangedURL = notchangedURL;
	}
	public String getChangepaintingURL() {
		return changepaintingURL;
	}
	public void setChangepaintingURL(String changepaintingURL) {
		this.changepaintingURL = changepaintingURL;
	}
	public Date getReleasetime() {
		return releasetime;
	}
	public void setReleasetime(Date releasetime) {
		this.releasetime = releasetime;
	}
	public Date getReviewtime() {
		return reviewtime;
	}
	public void setReviewtime(Date reviewtime) {
		this.reviewtime = reviewtime;
	}
	public Date getCreaTime() {
		return creaTime;
	}
	public void setCreaTime(Date creaTime) {
		this.creaTime = creaTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getUnpaidReason() {
		return unpaidReason;
	}
	public void setUnpaidReason(Integer unpaidReason) {
		this.unpaidReason = unpaidReason;
	}
	public Integer getSccore() {
		return sccore;
	}
	public void setSccore(Integer sccore) {
		this.sccore = sccore;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getHeight() {
		return height;
	}
	public void setHeight(Integer height) {
		this.height = height;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	
	
}
